package com.blb.community_admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community_admin.entity.vo.ZyOwnerRoomVO;
import com.blb.community_admin.mapper.ZyOwnerRoomMapper;
import com.blb.community_admin.service.ZyOwnerRoomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ZyOwnerRoomServiceImpl extends ServiceImpl<ZyOwnerRoomMapper, ZyOwnerRoomVO> implements ZyOwnerRoomService {
    @Resource
    private ZyOwnerRoomMapper zyOwnerRoomMapper;

    /**
     * 模糊分页
     * @param current
     * @param size
     * @return
     */
    @Override
    public IPage<ZyOwnerRoomVO> selectZyOwnerRoomPage(Long current, Long size, ZyOwnerRoomVO zyOwnerRoomVO) {
        return zyOwnerRoomMapper.selectZyOwnerRoomPage(new Page<>(current,size),zyOwnerRoomVO);
    }

    /**
     * 修改状态
     * @param zyOwnerRoomVO
     * @return
     */
    @Override
    public void updateZyOwnerRoom(ZyOwnerRoomVO zyOwnerRoomVO) {
         zyOwnerRoomMapper.updateZyOwnerRoom(zyOwnerRoomVO);
    }
}
